package com.chuan.consumer.factory;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.chuan.core.api.PlayGameService;

public class ProxyFactory {
	
	private static ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("dubbobean.xml");
	
	//获取服务
	public static PlayGameService getPlayService() {
		return  (PlayGameService) context.getBean("playGameService");  //获取服务
	}
	
	
}
